package com.study.cloud.gateway.core.filter;

import com.study.cloud.gateway.core.context.GatewayContext;

/**
 * 过滤器工厂顶级接口
 * @author wangwancheng
 * @create 2025/7/20 15:21
 */
public interface FilterChainFactory {
    /**
     * 构建过滤器链条
     * @param context
     * @return
     * @throws Exception
     */
    GatewayFilterChain build(GatewayContext context) throws Exception;

    /**
     * 通过过滤器id获取过滤器
     * @param filterId
     * @return
     * @throws Exception
     */
    FilterInterface getFilterInfo(String filterId) throws  Exception;
}
